$mainColor: #0dc900;
$transitionTime: 0.5s;

* {
    outline: none;
}

a {
    color: black;
    text-decoration: none;
}

html,
body,
.main {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
}

.main {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: gainsboro;
}

// 重设密码盒子样式
.forget-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 600px;
    height: 600px;

    // 重设密码标题样式
    .forget-title {
        font-weight: 100;
        font-size: 42px;
        color: black;
        letter-spacing: 1rem;
        margin-right: -1rem;
    }

    // 重设密码表单样式
    .forget-form {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 400px;

        :nth-child(n) {
            margin-bottom: 24px;
        }

        // 输入框样式
        input[type="text"],
        input[type="password"] {
            width: 100%;
            height: 50px;
            padding: 0px 10px;
            font-size: 20px;
            border: 1px solid #F0F0F0;
            border-radius: 6px;
            transition: border $transitionTime;

            &:focus {
                border: 1px solid $mainColor;
            }
        }

        // 验证码样式
        .code-pane {
            display: flex;
            width: calc(100% + 20px);

            // 验证码输入框样式
            .code {
                width: 70%;
                border-top-right-radius: 0;
                border-bottom-right-radius: 0;
            }

            // 验证码按钮样式
            .code-button {
                width: 30%;
                border: none;
                border-top-right-radius: 6px;
                border-bottom-right-radius: 6px;
                transition: opacity $transitionTime;
                cursor: pointer;

                &:hover {
                    opacity: 0.5;
                }

                &:disabled {
                    opacity: 1;
                    cursor: not-allowed;
                }
            }
        }

        // 重设密码按钮样式
        .reset-button {
            width: calc(100% + 20px);
            height: 50px;
            color: white;
            font-size: 20px;
            background-color: $mainColor;
            border: 1px solid $mainColor;
            border-radius: 6px;
            cursor: pointer;
            transition: opacity $transitionTime;

            &:hover {
                opacity: 0.5;
            }
        }

        // 链接样式
        .link {
            display: flex;
            flex-direction: column;
            align-items: center;

            p {
                margin: 0;
                margin-bottom: 4px;
            }

            a {
                transition: color $transitionTime;

                &:hover {
                    color: rgb(0, 132, 255);
                }
            }
        }
    }
}